.class public abstract Les/e8;
.super Ljava/lang/Object;
.source "CutScenesTarget.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;"
    }
.end annotation


# instance fields
.field protected a:Les/b8;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Les/b8<",
            "TT;>;"
        }
    .end annotation
.end field

.field private final b:Ljava/lang/ThreadLocal;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ThreadLocal<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field private c:I


# direct methods
.method constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/lang/ThreadLocal;

    invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V

    iput-object v0, p0, Les/e8;->b:Ljava/lang/ThreadLocal;

    const/16 v0, -0x3039

    .line 3
    iput v0, p0, Les/e8;->c:I

    return-void
.end method

.method private c()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/e8;->a:Les/b8;

    if-eqz v0, :cond_1

    .line 2
    iget-object v0, p0, Les/e8;->b:Ljava/lang/ThreadLocal;

    invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    return-void

    .line 3
    :cond_0
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "You should call elgSetup first"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 4
    :cond_1
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "You should init BackgroundTarget first"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method private d()V
    .locals 5

    .line 1
    iget v0, p0, Les/e8;->c:I

    const/16 v1, -0x3039

    if-eq v0, v1, :cond_0

    if-ltz v0, :cond_0

    const/4 v2, 0x1

    new-array v3, v2, [I

    const/4 v4, 0x0

    aput v0, v3, v4

    .line 2
    invoke-static {v2, v3, v4}, Landroid/opengl/GLES20;->glDeleteTextures(I[II)V

    .line 3
    iput v1, p0, Les/e8;->c:I

    :cond_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 2
    .annotation build Landroidx/annotation/CallSuper;
    .end annotation

    .line 10
    iget-object v0, p0, Les/e8;->b:Ljava/lang/ThreadLocal;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V

    .line 11
    invoke-direct {p0}, Les/e8;->d()V

    return-void
.end method

.method public final a(Lcom/esfile/screen/recorder/media/util/y;)V
    .locals 1

    .line 4
    iget-object v0, p0, Les/e8;->a:Les/b8;

    if-eqz v0, :cond_2

    .line 5
    iget-object v0, p0, Les/e8;->b:Ljava/lang/ThreadLocal;

    invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Les/e8;->b:Ljava/lang/ThreadLocal;

    invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_1

    .line 6
    :cond_0
    invoke-direct {p0}, Les/e8;->d()V

    .line 7
    invoke-virtual {p0, p1}, Les/e8;->b(Lcom/esfile/screen/recorder/media/util/y;)[I

    move-result-object p1

    const/4 v0, 0x0

    aget p1, p1, v0

    iput p1, p0, Les/e8;->c:I

    .line 8
    iget-object p1, p0, Les/e8;->b:Ljava/lang/ThreadLocal;

    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V

    :cond_1
    return-void

    .line 9
    :cond_2
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "You should init first"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public a(Les/b8;)V
    .locals 1
    .annotation build Landroidx/annotation/CallSuper;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/b8<",
            "TT;>;)V"
        }
    .end annotation

    if-eqz p1, :cond_0

    .line 1
    iget-object v0, p1, Les/b8;->b:Ljava/lang/Object;

    if-eqz v0, :cond_0

    .line 2
    iput-object p1, p0, Les/e8;->a:Les/b8;

    return-void

    .line 3
    :cond_0
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "config or config.src is null"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public b()I
    .locals 1

    .line 1
    invoke-direct {p0}, Les/e8;->c()V

    .line 2
    iget v0, p0, Les/e8;->c:I

    return v0
.end method

.method abstract b(Lcom/esfile/screen/recorder/media/util/y;)[I
    .annotation build Landroidx/annotation/NonNull;
    .end annotation
.end method
